<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>随行付</title>
<meta name="Copyright" content="Douco Design." />
<link href="css/public.css" rel="stylesheet" type="text/css">
<link href="css/haiersoft.css" rel="stylesheet" type="text/css" media="screen,print" />
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/global.js"></script>
</head>
<body>
<div id="dcWrap">
 <div id="dcHead">
 <div id="head">
  <div class="nav">
   <ul class="navRight">
    <li><a href="JavaScript:void(0);">您好，admin</a>
    </li>
    <li class="noRight"><a href="login.php?rec=logout">退出</a></li>
   </ul>
  </div>
 </div>
</div>
<!-- dcHead 结束 --> <div id="dcLeft"><div id="menu">
 <ul class="top">
  <li><i class="home"></i></li>
 </ul>
 <script>
$(function() {
    //$(".menu_list dd");
    $(".menu_list dt").click(function(){
        $(this).toggleClass("open").next().slideToggle("fast");
    });
    
    //添加序号
    var len = $('table tr').length;
    for(var i = 1;i<len;i++){
        $('table tr:eq('+i+') td:first').text(i);
    }
    
});
</script>

<div class="menu_list">
<dl>
<dt><span>付款申请</span></dt>
<dd>
<a href="danbifukuan"><i class="system"></i><em>单笔付款</em></a>
</dd>
<dt><span>交易查询</span></dt>
<dd>
<a href="daifujiaoyiHandler"><i class="system"></i><em>代付交易查询</em></a>
<a href="zhangwuHandler"><i class="system"></i><em>账务查询</em></a>
</dd>
<dt><span>账户管理</span></dt>
<dd>
<a href="yueHandler"><i class="system"></i><em>余额查询</em></a>
<a href="clientstatusHandler"><i class="system"></i><em>商户状态查询</em></a>
</dd>
</dl>
</div>
</div></div>
<script>
$(function(){
	//点击查询
	$("#daifujiaoyi_subBtn").click(function(){
		var jiaoyiStartDate=$("#jiaoyiStartDate").val();//交易时间
		var jiaoyiEndDate=$("#jiaoyiEndDate").val();//变更时间
    	
		location.href="daifujiaoyiAjax?jyStartDate="+jiaoyiStartDate;
    	//location.href="daifujiaoyiAjax?jyStartDate="+jiaoyiStartDate+"&jyEndDate="+jiaoyiEndDate;
    	//$.get("zhangwuAjax",{jyStartDate:jiaoyiStartDate,jyEndDate:jiaoyiEndDate});
	});
});
</script>
 <div id="dcMain">
   <!-- 当前位置 -->
<div id="urHere">交易查询<b>></b><strong>代付交易查询</strong> </div>   <div class="mainBox" style="height:auto!important;height:550px;min-height:550px;">
        <h3>代付交易查询</h3>
    <div class="filter">

           结算日期：<input name="jiaoyiStartDate" id="jiaoyiStartDate" type="date" class="inpMain" value="" size="20" />
           <!-- 至： <input name="jiaoyiEndDate" id="jiaoyiEndDate" type="date" class="inpMain" value="" size="20" />&nbsp;
           收款方户名：<input name="shoukuanName" type="text" class="inpMain" value="" size="20" />
           <input name="button" class="btnGray" type="submit" value="导出" />-->
     <input name="button" id="daifujiaoyi_subBtn" class="btnGray" type="submit" value="查询" />&nbsp;
     

    </div>
        <div id="list">
    <table width="100%" border="0" cellpadding="8" cellspacing="0" class="tableBasic">
      <tr>
        <th width="40" align="center">序号</th>
        <th align="left">付款数据ID</th>
        <th width="120" align="center">交易时间</th>
       <th width="120" align="center">变更时间</th>
        <th width="80" align="center">交易金额</th>
        <th width="120" align="center">交易状态</th>
        <th width="160" align="center">手续费</th>
        <th width="160" align="center">银行退票原因</th>
      </tr>
      <c:forEach var="i" items="${resData.settleDtlResultList}">
      <tr>
        <td align="center"></td>
        <td align="center"><c:out value="${i.payItemId}"/></td>
        <td align="center">
        	${fn:substring(i.timeCte,0,4)}-${fn:substring(i.timeCte,4,6)}-${fn:substring(i.timeCte,6,8)} ${fn:substring(i.timeCte,8,10)}:${fn:substring(i.timeCte,10,12)}:${fn:substring(i.timeCte,12,14)}
        </td>
        <td align="center">
        	${fn:substring(i.timeUte,0,4)}-${fn:substring(i.timeUte,4,6)}-${fn:substring(i.timeUte,6,8)} ${fn:substring(i.timeUte,8,10)}:${fn:substring(i.timeUte,10,12)}:${fn:substring(i.timeUte,12,14)}
        </td>
        <td align="center"><c:out value="${i.setAmt}"/></td>
        <td align="center">
			<c:choose>
				<c:when test="${i.setSts=='00'}">付款成功</c:when>
				<c:when test="${i.setSts=='01'}">处理中</c:when>
				<c:when test="${i.setSts=='02'}">付款成失败</c:when>
				<c:otherwise>银行退票成功</c:otherwise>
			</c:choose>
		</td>
        <td align="center"><c:out value="${i.setFreeAmt}"/></td>
        <td align="center"><c:out value="${i.refReason}"/>元</td>
      </tr>
      </c:forEach>
    </table>
    </div>
    <div class="clear"></div>           
    </div>
 </div>
 <div class="clear"></div>
<div id="dcFooter">
 <div id="footer">
  <div class="line"></div>

 </div>
</div><!-- dcFooter 结束 -->
<div class="clear"></div> </div>
<script type="text/javascript">

onload = function()
{
 document.forms['action'].reset();
}

function douAction()
{
 var frm = document.forms['action'];
 frm.elements['new_cat_id'].style.display = frm.elements['action'].value == 'category_move' ? '' : 'none';
}

</script>
</body>
</html>
